Skip to content

refactor: Minor changes to DB interactions to make compatible with Oracle for EE#7930

Open
matthewelwell wants to merge 1 commit into
mainfrom
refactor/feature-lifecycle-db-compatibility-changes
Open

refactor: Minor changes to DB interactions to make compatible with Oracle for EE#7930
matthewelwell wants to merge 1 commit into
mainfrom
refactor/feature-lifecycle-db-compatibility-changes

Conversation

@matthewelwell

Copy link
Copy Markdown
Contributor

Thanks for submitting a PR! Please check the boxes below:

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

2 small refactors to feature lifecycle implementation code in order to resolve compatibility issues with Oracle DB in our enterprise image (further context here)

How did you test this code?

Let CI do it's thing!

@vercel

vercel Bot commented Jul 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Jul 1, 2026 4:00pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
flagsmith-frontend-preview Ignored Ignored Jul 1, 2026 4:00pm
flagsmith-frontend-staging Ignored Ignored Jul 1, 2026 4:00pm

Request Review

@github-actions github-actions Bot added api Issue related to the REST API docs Documentation updates refactor and removed docs Documentation updates labels Jul 1, 2026
@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.65%. Comparing base (debfb7b) to head (9f69605).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7930      +/-   ##
==========================================
+ Coverage   98.63%   98.65%   +0.01%     
==========================================
  Files        1497     1497              
  Lines       59013    59812     +799     
==========================================
+ Hits        58207    59006     +799     
  Misses        806      806              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@matthewelwell matthewelwell marked this pull request as ready for review July 2, 2026 10:25
@matthewelwell matthewelwell requested review from a team as code owners July 2, 2026 10:25
@matthewelwell matthewelwell requested review from emyller and khvn26 and removed request for a team and khvn26 July 2, 2026 10:25
@github-actions github-actions Bot added refactor and removed refactor labels Jul 2, 2026
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-e2e:pr-7930 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api-test:pr-7930 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-7930 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api:pr-7930 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-7930 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-7930 Finished ✅ Results

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  4 passed

Details

stats  4 tests across 3 suites
duration  42.8 seconds
commit  9f69605
info  🔄 Run: #18021 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  4 passed

Details

stats  4 tests across 3 suites
duration  46.5 seconds
commit  9f69605
info  🔄 Run: #18021 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  6 passed

Details

stats  6 tests across 4 suites
duration  33.6 seconds
commit  9f69605
info  🔄 Run: #18021 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  18.8 seconds
commit  9f69605
info  🔄 Run: #18021 (attempt 1)

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Visual Regression

19 screenshots compared. See report for details.
View full report

@emyller emyller left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One non-blocking question.

Comment on lines -47 to +51
counts = features.values("lifecycle_stage").annotate(count=Count("pk")) # type: ignore[misc]
summary: dict[LifecycleStage, int] = {stage: 0 for stage in LifecycleStage}
for stage_count in counts:
summary[stage_count["lifecycle_stage"]] = stage_count["count"]
counts = Counter(features.values_list("lifecycle_stage", flat=True)) # type: ignore[misc]
summary: dict[LifecycleStage, int] = {
stage: counts.get(stage, 0) for stage in LifecycleStage
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Judging by the amount of features I can see in SaaS, this doesn't add much. Though I'd be really surprised if Oracle can't do count + group by together. 🤔 Did you see a specific error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Issue related to the REST API refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants